<?php

namespace Alipay\AlipayFund\Request;

use Alipay\AlipayFund\Info\Parties;
use Alipay\AlipayFund\Info\PayeeList;
use Alipay\AlipayFund\Response\AlipayFundBatchBillEreceiptApplyResponse;
use Alipay\AlipayFund\Response\AlipayFundBatchCreateResponse;
use Alipay\Common\RequestBase;

class AlipayFundBatchBillEreceiptApplyRequest extends RequestBase
{
    protected $method = 'alipay.data.bill.ereceipt.apply';

    protected $response = AlipayFundBatchBillEreceiptApplyResponse::class;

    /**
     * @var string $key
     */
    private $key;

    /**
     * 生成请求参数
     * @return array
     * @author xis
     */
    public function generate(): array
    {
        return [
            'type' => 'FUND_DETAIL',
            'key' => $this->key
        ];
    }

    /**
     * @param string $key
     */
    public function setKey(string $key): void
    {
        $this->key = $key;
    }

}